﻿//-----------------------------------------------------------------------
// <copyright file="polyline.cs" company="WorldView Solutions Inc">
//     Copyright (c) WorldView Solutions Inc. This source is subject to the Microsoft Public License (Ms-PL). All other rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;

namespace WorldViewSolutions.Geometry
{
    /// <summary>
    /// 
    /// </summary>
    /// <remarks></remarks>
	[Serializable]
	[XmlRoot("polyline")]
	public class Polyline : Geometry
	{
        /// <summary>
        /// Gets or sets the paths.
        /// </summary>
        /// <value>The paths.</value>
        /// <remarks></remarks>
		[XmlElement("paths")]
		public List<Path> Paths { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        /// <remarks></remarks>
		public Polyline()
		{
			this.Paths = new List<Path>();
		}

        /// <summary>
        /// Initializes a new instance of the <see cref="Polyline"/> class.
        /// </summary>
        /// <param name="paths">The paths.</param>
        /// <remarks></remarks>
		public Polyline(List<Path> paths)
		{
            this.Paths = paths != null ? paths : new List<Path>();
		}
	}
}